package pl.edu.pw.perg.compinfodb.manager;

import java.util.List;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import pl.edu.pw.perg.compinfodb.dao.IVirtualElementDAO;
import pl.edu.pw.perg.compinfodb.entities.VirtualElement;

public class VirtualElementManager extends GenericManager<VirtualElement> implements
	IVirtualElementManager  {

	public static String ELEMENT_CATEGORY = "elementCategory";

//	@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
//	public IVirtualElement findById(Long elementId){
//		return ((IVirtualElementDAO) getGenericDAO()).findById(elementId);
//	}

	@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
	public List<VirtualElement> findRoots(){
		return ((IVirtualElementDAO) getGenericDAO()).findRoots();
	}

}
